package com.tm.user.controller;

import com.tm.media.model.dtos.BehaviorDto;
import com.tm.media.utils.utils.Result;
import com.tm.user.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ly
 * @Data 2023/2/25 17:01
 * @ClassName StatisticsController
 */
@RestController
@RequestMapping("/api/v1/user")
public class ApUserController {
    @Autowired
    private ApUserService statisticsService;
    @PostMapping("user_follow")
    public Result user_follow(@RequestBody BehaviorDto behaviorDto){
        return statisticsService.user_follow(behaviorDto);
    }
}
